/*
** Copyright (C) 2009 Joshua Brent Marsh <joshua@icub3d.com>
**  
** This file is part of icub3d-adt
**
** icub3d-adt is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 3 of the License, or
** (at your option) any later version.
**  
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**  
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**  
*/

/* $Id: istring.h 45 2009-11-17 02:12:27Z joshua@icub3d.com $ */

#ifndef ICUB3D_STRING_H
#define ICUB3D_STRING_H 1

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdarg.h>
#include <string.h>

#include "list.h"

/* Memory cat functions. */
int strmcat (char **dest, const char *src);
int strmncat (char **dest, const char *src, const size_t size);

/* A string Tokenizer. */
List * strltok (const char *line, const char *delims, const char *quotes,
		const char *nulls);

/* Memory delimiter cat functions. */
int strdcat (char **dest, const char *delim, const size_t count, ...);
int vstrdcat (char **dest, const char *delim, const size_t count, va_list srcs);
int strdncat (char **dest, const char *delim, const size_t size, 
	      const size_t count, ...);
int vstrdncat (char **dest, const char *delim, const size_t size, 
	       const size_t count, va_list srcs);

#endif /* ICUB3D_STRING_H */
